<template>
    <div class="yaya_bot">
        <Header></Header>
        <Body></Body>
        <Footer></Footer>
    </div>
</template>

<script>
import IntentManager from './entities/IntentManager'
import Header from './components/Header.vue'
import Body from './components/Body.vue'
import Footer from './components/Footer.vue'


export default {
    components: {
        Header,
        Body,
        Footer,
    },
    provide() {
        return {
            intentManager: this.intentManager, // 为子组件提供实体管理器
        }
    },
    data() {
        return {
            // 初始化实体管理器
            intentManager: new IntentManager(), // 使Vue响应式的管理该对象
        }
    },
}
</script>

<style scoped>
.yaya_bot * {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans - serif;
    font-size: 20px;
    transition: all .5s;
}

.yaya_bot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f5f5f5;
}
</style>